<% if @data_check == true %>
    $('#tr_<%= @tr_id %>').remove();
    <% flash[:notice] = ' Hotel Room Image has been sucessfully deleted ' %> 
    $("#flash_message_wrapper").html("<%=j render partial: 'layouts/flash_messages' %>");
    animateFlashMessages();
<% else %>
    alert('something wrong');
<% end %>
